<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:if test="${sessionScope.commListFlag == null ||  sessionScope.commListFlag == 0}">
	<jsp:forward page="/getCommAll"/>
</c:if>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>评论列表</title>
    <link rel="stylesheet" href="css/commtentList.css">
</head>
<body>
    <div class="table">
        <table>
            <tr>
                <th class="widthId">评论id</th>
                <th class="widthLong">评论内容</th>
                <th class="widthLong">昵称</th>
                <th class="widthLong">网站</th>
                <th class="widthLong">email</th>
                <th class="widthLong">发表时间</th>
                <th class="widthId">点赞量</th>
                <th class="widthId">父评论id</th>
                <th class="widthId">文章id</th>
                <th>操作</th>
            </tr>
            
<!--             循环显示 -->
            <c:forEach items="${requestScope.commAllist }" var="comm">
            
            <tr>
                <td>${comm.commtentId }</td>
                <td>${comm.commtentCont }</td>
                <td>${comm.nickName}</td>
                <td>${comm.website }</td>
                <td>${comm.email }</td>
                <td>${comm.strDate }</td>
                <td>${comm.praiseNum }</td>
                <td>${comm.parentId }</td>
                <td>${comm.articleId }</td>
                <td><a href="" class="view">查看</a><a href="" class="delete">删除</a></td>
            </tr>
            </c:forEach>
        </table>
    </div>
    <c:set var="commListFlag" value="0" scope="session"></c:set>
</body>
</html>